package fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.example.administrator.ci_edit.R;

import activity.DaShangActivity;


/**
 * Created by hello world on 2017/7/21.
 */

public class VipFragment extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        View view= inflater.inflate(R.layout.firstvip, container, false);

        Button btn1 = (Button)view.findViewById(R.id.vipEnterButton);
        btn1.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                Intent intent=new Intent();
                intent.setClass(getActivity(), DaShangActivity.class);
                Log.d("VipFragment","准备进行页面跳转了");
                startActivity(intent);
                Log.d("VipFragment","页面跳转了");
            }
        });

        return view;
    }
}
